import request from '@/utils/request'
// 获取组织架构列表数据
export function getCompanyDepartment (){
    return request({
        url:'/company/department',
        method:'get'
    })
}

// 根据ID删除部门
export function delCompanyDepartment (id){
    return request({
        url:`/company/department/${id}`,
        method:'delete'
    })
}
// 新增部门
export function addCompanyDepartment (data){
    return request({
        url:'/company/department',
        method:'post',
        data
    })
}

// 根据id修改部门
export function updateCompanyDepartment (data){
    return request({
        url:`/company/department/${data.id}`,
        method:'put',
        data
    })
}

